package com.example.news.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.news.pojo.entity.Comment;
import com.example.news.pojo.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 86147
* @description 针对表【comment】的数据库操作Mapper
* @createDate 2023-10-19 14:35:30
* @Entity com.example.news.pojo.entity.Comment
*/
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    Page<MyCommentVo> getMyCommentPage(Page<Comment> page, Long id);

    Page<FirstCommentVo> getFirstComment(Page<Comment> page,Integer articleId);

    Page<SecondCommentVo> getSecondComment(Page<Comment> page, Integer commentId);

    Page<AllCommentVo> getAllComment(Page<Comment> page, @Param("keyword") String key);

    ArticleCommentVo getArticleCommentByArticleId(Integer articleId);
}




